import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import NewHello from '@/components/NewHello'
import ShowText from '@/components/ShowText'
import JSExpression from '@/components/JSExpressionTest'

// 代码包
Vue.use(Router)

// 定义路由
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: HelloWorld
    },
    {
      path: '/HelloWorld',
      name: 'HelloWorld',
      component: NewHello
    },
    {
      path: '/ShowText',
      component: ShowText
    },
    {
      path: '/JSExpression',
      component: JSExpression
    }
  ]
})
